<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 借出单列表</title>
    <link rel="shortcut icon" href="../content/static/img/favicon.ico">
    <link href="../content/css/common_modal.css" rel="stylesheet">
    <link href="../content/static/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="../content/static/css/plugins/chosen/chosen.css" rel="stylesheet">
    <link href="../content/static/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="../content/js/lib/vue/select2.min.css" rel="stylesheet">
    <link href="../content/js/lib/calendar/calendar.css" rel="stylesheet">
    <link href="../content/js/lib/calendar/scrollbar.css" rel="stylesheet">
    <link href="../content/static/css/style.min.css?v=4.0.0" rel="stylesheet">
    <style>
       
        table-th{
            font-size: 12px;
            font-family: tahoma, "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
            line-height: 1.42857143;
            color: #333;
            background-color: #f5f5f5;
        }
        table tr{ height:40px;}
    </style>
</head>

<body class="content-container">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <ol class="breadcrumb">
                            <li>
                                <a>库存管理</a>
                            </li>
                            <li>
                                <a>借出单列表</a>
                            </li>
                        </ol>
                    </div>
                    <div class="content-wrapper">
                        <div class="search-condition">
                            <div>
                                <div class="filter-wrapper">
                                    <ul class="clearfix">
                                        <li class="filter-item ">
                                            <label>单据编号</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>商品名称</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>借出日期</label>
                                            <div>
                                                <div class="fill-wrapper fill-wrapper-auto">
                                                    <input id="costTimeStart" type="text" class="fill-item  revision-time"
                                                        readonly="readonly">
                                                </div>
                                                <div class="fill-desc">到</div>
                                                <div class="fill-wrapper fill-wrapper-auto">
                                                    <input id="costTimeEnd" type="text" class="fill-item  revision-time"
                                                        readonly="readonly">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>审核状态</label>
                                            <div>
                                                <select v-select2 id="approvalStatus">
                                                    <option value='0'>全部</option>
                                                    <option value='1'>待CEO审批</option>
                                                    <option value='2'>待财务审批</option>
                                                    <option value='3'>待直属领导审批</option>
                                                </select>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>制单人</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>出库仓库</label>
                                            <div>
                                                <select v-select2 id="warehouse">
                                                    <option value='0'>全部</option>
                                                    <option v-for="item in warehouseList" v-bind:value="item.Value"
                                                        v-bind:selected="$index===0" v-text="item.Text"></option>
                                                </select>
                                            </div>
                                        </li>
                                        <li class="filter-item">
                                            <label class="checkbox-wrapper" style="width: 140px;"><input class="revision-checkbox"
                                                    type="checkbox" id="isEfficacious" /> 显示作废单</label>
                                        </li>
                                        <li class="filter-item">
                                            <a class="revision-btn revision-btn-search">搜索</a>
                                            <a href="javascript:;" class="more">更多<i class="revision-icon-more"></i></a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div class="col-sm-12" style="padding: 12px 0px 12px 0px;">
                            <div class="alert alert-info" style="margin-bottom: 0px">
                                <a class="revision-btn" v-on:click="addShow()">新增借入</a>
                                <a class="revision-btn" v-on:click="lookShow()">打印</a>
                                <a class="revision-btn" v-on:click="addShow()">导出</a>
                                <span>总条数：<span>12 条</span></span>&nbsp;&nbsp;<span>借入金额<span>812,000</span></span>
                            </div>
                        </div>
                        <table class="table table-hover">
                            <thead style="background: #f5f5f5;">
                                <tr>
                                    <th>#序号</th>
                                    <th>制单日期</th>
                                    <th>单据编号</th>
                                    <th>客户名称</th>
                                    <th>借出商品</th>
                                    <th>出库仓库</th>
                                    <th>归还日期</th>
                                    <th>当前状态</th>
                                    <th>审核状态</th>
                                    <th>制单人</th>
                                    <th>经办人</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>2018-12-20</td>
                                    <td>JCD20181240004</td>
                                    <td>盈云公司</td>
                                    <td>劲霸超浓缩低泡洗车香波、</td>
                                    <td class="text-navy">A仓</td>
                                    <td>2018-12-24</td>
                                    <td class="text-navy">已归还</td>
                                    <td>待CEO审批
                                        <div>
                                            <a class="text-navy" href="javascript:;">审批进度</a>
                                        </div>
                                    </td>
                                    <td>老板</td>
                                    <td>老板</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>2018-12-20</td>
                                    <td>JCD20181220004</td>
                                    <td>盈云公司</td>
                                    <td>劲霸超浓缩低泡洗车香波、</td>
                                    <td class="text-navy">B仓</td>
                                    <td>2018-12-25</td>
                                    <td class="text-navy">已归还</td>
                                    <td>待项目理审批
                                        <div>
                                            <a class="text-navy" href="javascript:;">审批进度</a>
                                        </div>
                                    </td>
                                    <td>老板</td>
                                    <td>老板</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>2018-12-20</td>
                                    <td>JCD20181220006</td>
                                    <td>盈云公司</td>
                                    <td>劲霸超浓缩低泡洗车香波、</td>
                                    <td class="text-navy">C仓</td>
                                    <td>2018-12-25</td>
                                    <td class="amount">未归还</td>
                                    <td>待销售经理审批
                                        <div>
                                            <a class="text-navy" href="javascript:;">审批进度</a>
                                        </div>
                                    </td>
                                    <td>老板</td>
                                    <td>老板</td>
                                    <td>
                                        <a href="javascript:;" v-on:click="detailShow(1)">详情</a>
                                        <a href="javascript:;" v-on:click="detailShow(3)">删除</a>
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
            <div style="display: none;" v-show="pageInit">
                <!-- 新增借出单 -->
                <modal v-bind:show.sync="addModal.show" v-bind:style="addModal .style" v-bind:add-class="addModal.addClass">
                    <h4 slot="header">新增借出单
                        <span class="title-tips">单据编号：<span>PD20181220005</span></span>
                        <span class="title-tips">制单日期：<span>2018-12-20 14:40:58</span></span>
                        <span class="title-tips">经办人：<span>当前登陆人</span></span>
                    </h4>
                    <div slot="body" class="clearfix">
                        <div class="panel blank-panel">
                            <div class="panel-options">
                                <ul class="nav nav-tabs">
                                    <li class="active"><a data-toggle="tab" href="#tab-4">扫码新增借入商品</a>
                                    </li>
                                    <li class=""><a data-toggle="tab" href="#tab-5" aria-expanded="false">手动新增借入商品</a>
                                    </li>
                                    <li class=""><a data-toggle="tab" href="#tab-6" aria-expanded="false">导入借入商品</a>
                                    </li>
                                </ul>
                            </div>
                            <div class="panel-body">
                                <div class="tab-content">
                                    <div id="tab-4" class="tab-pane active">
                                        <form class="form-horizontal" novalidate="novalidate">
                                            <div class="form-group" style="margin-bottom:0px">
                                                <div class="col-sm-4">
                                                    <input class="fill-item timeChoose" placeholder="请输入或扫描商品编号/条形码/序列号"
                                                        type="text" style="border:2px solid #444" />
                                                </div>
                                            </div>
                                        </form>
                                    </div>
                                    <div id="tab-5" class="tab-pane">
                                        <a class="revision-btn" href="javascript:;" v-on:click="selectProduct()">选择商品信息</a>
                                    </div>
                                    <div id="tab-6" class="tab-pane">
                                        <a class="revision-btn" href="javascript:;">导入商品信息</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <div>
                                <h3 class="panel-title">借出信息<span class="title-tips">一个借入单只能选择一个客户</span></h3>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">借出客户</label>
                                <div class="col-sm-3">
                                    <select id="supplier">
                                        <option v-for="item in warehouseList" v-bind:value="item.Value" v-bind:selected="$index===0"
                                            v-text="item.Text"></option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">出库仓库</label>
                                <div class="col-sm-3">
                                    <select id="warehouseAdd">
                                        <option v-for="item in warehouseList" v-bind:value="item.Value" v-bind:selected="$index===0"
                                            v-text="item.Text"></option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">借出类型</label>
                                <select id="type">
                                    <option value='1'>零售</option>
                                    <option value='2'>批发</option>
                                </select>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">归还日期</label>
                                <div class="col-sm-3">
                                    <input id="backTime" class="fill-item timeChoose" placeholder="归还日期" type="text"
                                        readonly="readonly" style="width: 160px;" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">借出备注</label>
                                <div class="col-sm-7">
                                    <textarea id="ccomment" name="comment" class="form-control" style="height: 54px;"></textarea>
                                </div>
                            </div>
                            <div>
                                <h3 class="panel-title">商品信息<span class="title-tips">注：单个借入单可选最大产品数为100条</span></h3>
                            </div>
                            <div class="col-sm-12" style="padding: 0px 0px 10px 0px;">
                                <div class="alert alert-info" style="margin-bottom: 0px">
                                    <span>借出：<span>12 件商品</span></span>&nbsp;&nbsp;<span>总计金额<span>812,000</span></span>
                                </div>
                            </div>
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th style="width: 70px;">序号</th>
                                        <th>商品名称/规格</th>
                                        <th style="width: 80px;">商品编号</th>
                                        <th style="width: 70px;">属性</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 70px;">账面数量</th>
                                        <th style="width: 70px;">借出数量</th>
                                        <th style="width: 80px;">单价(元)</th>
                                        <th style="width: 80px;">金额(元)</th>
                                        <th style="width: 120px;">备注</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="item in productChooseList" v-bind:data-index="$index">
                                        <td><span v-text="$index+1"></span>
                                            <span style="padding: 0px 0px 0px 5px;"><a href="javascript:;">删除</a></span>
                                        </td>
                                        <td> <span v-text="item.productName"></span><span v-if="item.prope!=''">/</span><span
                                                v-text="item.prope"></span></td>
                                        <td class="text-navy"><span v-text="item.productCode"></span></td>
                                        <td><span v-text="item.prope"></span></td>
                                        <td><span v-text="item.spec"></span></td>
                                        <td><span v-text="item.stockCount"></span></td>
                                        <td class="text-navy">
                                            <input type="text" class="fill-item" style="width: 50px" value="{{item.stockCount}}">
                                        </td>
                                        <td class="amount"><span v-text="item.price"></span></td>
                                        <td class="amount"><span v-text="item.price*item.stockCount"></span></td>
                                        <td><span v-tetx="item.remark"></span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                    <div slot="footer" style="text-align:center">
                        <a href="javascript:;" class="revision-btn"> 保存</a>
                        <a href="javascript:;"  class="revision-btn-default" v-on:click="this.addModal.close()"> 取消</a>
                    </div>
                </modal>
                <!-- 选择商品 -->
                <modal v-bind:show.sync="productSelectModal.show" v-bind:style="productSelectModal .style"
                    v-bind:add-class="productSelectModal.addClass">
                    <h4 slot="header">选择商品</h4>
                    <div slot="body" class="clearfix">
                        <div class="search-condition">
                            <div>
                                <div class="filter-wrapper">
                                    <ul class="clearfix">
                                        <li class="filter-item " style="width: 330px;">
                                            <label>商品编号</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <label>商品名称</label>
                                            <div>
                                                <div class="fill-wrapper">
                                                    <input id="serialNumber" type="text" class="fill-item">
                                                </div>
                                            </div>
                                        </li>
                                        <li class="filter-item ">
                                            <a class="revision-btn" href="javascript:;">查询</a>
                                        </li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th style="width: 50px;">
                                            <input class="revision-checkbox" type="checkbox" v-model="item.checked"
                                                v-on:click="productChooseClick(item)">
                                        </th>
                                        <th style="width: 50px;">数量</th>
                                        <th>商品名称/规格</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 50px;">图片</th>
                                        <th style="width: 70px;">进货价</th>
                                        <th style="width: 80px;">库存数量</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="item in productListSelect">
                                        <td>
                                            <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)">
                                        </td>
                                        <td>
                                            <input type="text" class="fill-item" style="width: 50px">
                                        </td>
                                        <td>
                                            劲霸内饰清洁剂/12L
                                        </td>
                                        <td><span v-text="item.spec"></span></td>
                                        <td>
                                            <img style="height: 80px;width: 80px;margin-bottom: 6px;margin-top: 6px;float: left;"
                                                src="../content/static/img/no_pic.png">
                                        </td>
                                        <td class="text-navy"><span v-text="item.stockCount"></span></td>
                                        <td class="text-navy"><span v-text="item.inventoryCount"></span></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                        <div style="color: #fb7cd5">此处前端分页处理/后端也行</div>
                    </div>
                </modal>
                <!-- 借出单详情 -->
                <modal v-bind:show.sync="detailModal.show" v-bind:style="detailModal .style" v-bind:add-class="detailModal.addClass">
                    <h4 slot="header">详情</h4>
                    <div slot="body" class="clearfix">
                        <div class="approve-detail-modal-title">
                            <h2>借出详情</h2>
                        </div>
                        <ul class="bill-tips clearfix">
                            <li>
                                <em>单据编号</em>
                                <span>JCD20181220005</span>
                            </li>
                            <li>
                                <em>制单时间</em>
                                <span>2018-12-22</span>
                            </li>
                            <li>
                                <em>制单人</em>
                                <span>老板</span>
                            </li>
                            <li>
                                <em>归还状态</em>
                                <span class="amount">未归还</span>
                            </li>
                            <li>
                                <em>归还日期</em>
                                <span class="amount">2019-01-20</span>
                            </li>
                            <li>
                                <em>出库仓库</em>
                                <span class="amount">默认仓库</span>
                            </li>
                            <li class="w-100">
                                <em>客户名称</em>
                                <span>江苏苏州工业园区创意产业园盈云飞翔软件开发有限公司</span>
                            </li>
                            <li  class="w-100">
                                <em>审批群人</em>
                                <span>直属领导、财务、仓库管理员</span>
                            </li>
                            
                            <li  class="w-100">
                                <em>借出备注</em>
                                <span>2018-12-22张xxx借出三件商品共计89000元，口头答应10天后归还</span>
                            </li>
                        </ul>
                        <form class="form-horizontal" novalidate="novalidate">
                            <div><h3 class="panel-title">借出信息</h3></div>
                            <div class="search-list" style="text-align:right;padding: 10px 10px 10px;">
                                <div>
                                    <div class="filter-wrapper">
                                        <ul class="clearfix">
                                            <li class="filter-item " style="padding: 1px 15px;">
                                                <label style="width: 60px;">商品名称</label>
                                                <div style="margin-left: 60px;">
                                                    <div class="fill-wrapper" style="width: 130px;">
                                                        <input id="serialNumber" type="text" class="fill-item">
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="filter-item " style="padding: 1px 15px;">
                                                <label style="width: 60px;">商品编码</label>
                                                <div style="margin-left: 60px;">
                                                    <div class="fill-wrapper fill-wrapper-auto">
                                                        <input type="text" class="fill-item ">
                                                    </div>
                                                </div>
                                            </li>
                                            <li class="filter-item " style="padding: 1px 15px;">
                                                <label style="width: 60px;">归还状态</label>
                                                <div style="margin-left: 60px;">
                                                    <select id="backStatus">
                                                        <option v-for="item in backStatusList" v-bind:value="item.Value"
                                                            v-bind:selected="$index===0" v-text="item.Text"></option>
                                                    </select>
                                                </div>
                                            </li>
                                            <li class="filter-item">
                                                <a class="revision-btn revision-btn-search" style="right: 20px;">搜索</a>
                                            </li>
                                        </ul>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-12" style="padding: 0px;">
                                <div class="alert alert-info" style="margin: 10px 0px;">
                                    <a class="revision-btn" href="javascript:;" v-on:click="backShow()">归还</a>
                                    <a class="revision-btn" href="javascript:;" v-on:click="saleShow()">转销售</a>
                                    <span>借出金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;
                                    <span>共计<span class="text-navy">8 </span>条</span>
                                </div>
                            </div>
                            <table class="table table-hover table-bordered" style="margin-top: 10px">
                                <thead>
                                    <tr>
                                        <th style="width: 50px;">
                                            <input class="revision-checkbox" type="checkbox" v-model="item.checked"
                                                v-on:click="productChooseClick(item)">
                                        </th>
                                        <th>商品名称/规格</th>
                                        <th>商品编号</th>
                                        <th style="width: 50px;">属性</th>
                                        <th style="width: 50px;">单位</th>
                                        <th style="width: 50px;">数量</th>
                                        <th style="width: 70px;">已归还</th>
                                        <th style="width: 70px;">未归还</th>
                                        <th style="width: 70px;">转销售</th>
                                        <th style="width: 70px;">单价(元)</th>
                                        <th style="width: 80px;">金额(元)</th>
                                        <th style="width: 80px;">备注</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td> <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                        <td>三角阀/通用型</td>
                                        <td>SP20150717002</td>
                                        <td></td>
                                        <td>个</td>
                                        <td class="text-navy">1</td>
                                        <td>1</td>
                                        <td>0</td>
                                        <td>1</td>
                                        <td class="amount">0</td>
                                        <td class="amount">8.00</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td> <input disabled class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                        <td>劲霸超浓缩低泡洗车香波/12L</td>
                                        <td>Q01</td>
                                        <td></td>
                                        <td>桶</td>
                                        <td class="text-navy">1</td>
                                        <td>1</td>
                                        <td>0</td>
                                        <td>0</td>
                                        <td class="amount">156.00</td>
                                        <td class="amount">156.00</td>
                                        <td></td>
                                    </tr>
                                    <tr>
                                        <td> <input class="revision-checkbox" type="checkbox" v-on:click="productChooseClick(item)"></td>
                                        <td>劲霸内饰清洁剂/5L/12L</td>
                                        <td>Q0961243218</td>
                                        <td></td>
                                        <td>桶</td>
                                        <td class="text-navy">9</td>
                                        <td>3</td>
                                        <td>6</td>
                                        <td>0</td>
                                        <td class="amount">356.00</td>
                                        <td class="amount">356.00</td>
                                        <td></td>
                                    </tr>
                                </tbody>
                            </table>
                        </form>
                    </div>
                </modal>
                <!-- 新增归还单 JGH 接归还-->
                <modal v-bind:show.sync="backModal.show" v-bind:style="backModal .style" v-bind:add-class="backModal.addClass">
                    <h4 slot="header">新增</h4>
                    <div slot="body" class="clearfix">
                        <div class="approve-detail-modal-title"><h2>新增归还单</h2></div>
                        <ul class="bill-tips clearfix">
                            <li>
                                <em>单据编号</em>
                                <span>JGH20181220005</span>
                            </li>
                            <li>
                                <em>制单时间</em>
                                <span>2018-12-22</span>
                            </li>
                            <li>
                                <em>制单人</em>
                                <span>老板</span>
                            </li>
                            <li class="w-100">
                                <em>客户名称</em>
                                <span>江苏苏州工业园区创意产业园盈云飞翔软件开发有限公司</span>
                            </li>
                        </ul>
                        <div><h3 class="panel-title">商品信息</h3></div>
                        <div class="col-sm-12" style="padding: 0px;">
                            <div class="alert alert-info" style="margin-bottom: 10px;">
                                <span>归还金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span>共计<span
                                        class="text-navy">8 </span>条</span>
                            </div>
                        </div>
                        <table class="table table-hover table-bordered" style="margin-top: 10px">
                            <thead>
                                <tr>
                                        <th style="width: 50px;">序号</th>
                                    <th>商品名称/规格</th>
                                    <th style="width: 80px;">商品编号</th>
                                    <th style="width: 50px;">属性</th>
                                    <th style="width: 50px;">单位</th>
                                    <th style="width: 80px;">未归还数量</th>
                                    <th style="width: 70px;">归还数量</th>
                                    <th style="width: 80px;">备注</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                        <td>1</td>
                                    <td>三角阀/通用型</td>
                                    <td>SP20150717002</td>
                                    <td></td>
                                    <td>个</td>
                                    <td class="amount">7</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="3"></td>
                                    <td></td>
                                </tr>
                                <tr>
                                        <td>2</td>
                                    <td>劲霸超浓缩低泡洗车香波/12L</td>
                                    <td>Q01</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">4</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="3"></td>
                                    <td></td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>劲霸内饰清洁剂/5L/12L</td>
                                    <td>Q0961243218</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">6</td>
                                    <td class="text-navy"><input class="fill-item" type="text" value="4"></td>
                                    <td></td>
                                </tr>
                            </tbody>
                        </table>
                        <div><h3 class="panel-title">其他信息<span class="title-tips">A仓库借出，归还不一定归还到A仓库，具体根据业务逻辑确定，此处不做限制</span></h3></div>
                        <form  class="form-horizontal m-t" novalidate="novalidate">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">入库仓库</label>
                                <div class="col-sm-3">
                                    <select select2 id="warehouse_add">
                                        <option value="0" >A仓库</option>
                                        <option value="1" >B仓库</option>
                                        <option value="3" >默认仓库</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">归还状态</label>
                                <div class="col-sm-3" style="margin-top: 6px;">
                                    <input type="radio" class="cus-radio" name="status" value="2" checked><span class="spanchk">部分归还</span>
                                    <input type="radio" class="cus-radio" name="status" value="1"> <span class="spanchk">全额归还</span>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">归还备注</label>
                                <div class="col-sm-7">
                                    <textarea id="ccomment" name="comment" class="form-control" style="height: 54px;"></textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div slot="footer" style="text-align:center">
                        <a href="javascript:;" class="revision-btn"> 保存</a>
                        <a href="javascript:;"  class="revision-btn-default" v-on:click="this.backModal.close()"> 取消</a>
                    </div>
                </modal>
                <!-- 新增转销售单 JZJ 借转销售-->
                <modal v-bind:show.sync="pushModal.show" v-bind:style="pushModal .style" v-bind:add-class="pushModal.addClass">
                    <h4 slot="header">新增</h4>
                    <div slot="body" class="clearfix">
                        <div class="approve-detail-modal-title"><h2>新增销售单</h2></div>
                        <ul class="bill-tips clearfix">
                            <li>
                                <em>单据编号</em>
                                <span>JXS20181220005</span>
                            </li>
                            <li>
                                <em>制单时间</em>
                                <span>2018-12-22</span>
                            </li>
                            <li>
                                <em>制单人</em>
                                <span>老板</span>
                            </li>
                            <li class="w-100">
                                <em>客户名称</em>
                                <span>江苏苏州工业园区创意产业园盈云飞翔软件开发有限公司</span>
                            </li>
                        </ul>
                        <div><h3 class="panel-title">商品信息<span class="title-tips">借出转销售时，只能全额销售，暂不支持部分转销售部分转归还</span></h3></div>
                        <div class="col-sm-12" style="padding: 0px;">
                            <div class="alert alert-info" style="margin-bottom: 10px;">
                                <span>实付金额：<span class="amount">812,000</span></span>&nbsp;&nbsp;&nbsp;&nbsp;<span>共计<span
                                        class="text-navy">8 </span>条</span>
                            </div>
                        </div>
                        <table class="table table-hover table-bordered" style="margin-top: 10px">
                            <thead>
                                <tr>
                                    <th style="width: 50px;">序号</th>
                                    <th>商品名称/规格</th>
                                    <th style="width: 80px;">商品编号</th>
                                    <th style="width: 50px;">属性</th>
                                    <th style="width: 50px;">单位</th>
                                    <th style="width: 80px;">销售数量</th>
                                    <th style="width: 80px;">单价(元)</th>
                                    <th style="width: 70px;">金额(元)</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td>1</td>
                                    <td>三角阀/通用型</td>
                                    <td>SP20150717002</td>
                                    <td></td>
                                    <td>个</td>
                                    <td class="amount">7</td>
                                    <td class="amount">100</td>
                                    <td class="amount">700</td>
                                </tr>
                                <tr>
                                    <td>2</td>
                                    <td>劲霸超浓缩低泡洗车香波/12L</td>
                                    <td>Q01</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">4</td>
                                    <td class="amount">81</td>
                                    <td class="amount">567</td>
                                </tr>
                                <tr>
                                    <td>3</td>
                                    <td>劲霸内饰清洁剂/5L/12L</td>
                                    <td>Q0961243218</td>
                                    <td></td>
                                    <td>桶</td>
                                    <td class="amount">6</td>
                                    <td class="amount">25</td>
                                    <td class="amount">150</td>
                                </tr>
                            </tbody>
                        </table>
                        <div><h3 class="panel-title">支付信息<span class="title-tips">点击确认后弹出支付二维码？还是说显示账号信息？</span></h3></div>
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <div class="form-group" style="margin-top: 15px">
                                <label class="col-sm-1 control-label">结算账户</label>
                                <div class="col-sm-3">
                                    <select id="account">
                                        <option v-for="item in accountList" v-bind:value="item.Value"
                                            v-bind:selected="$index===0" v-text="item.Text"></option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">折扣方式</label>
                                <div class="col-sm-3">
                                    <select id="discount">
                                        <option value='1'>折扣率(%)</option>
                                        <option value='2'>折扣额(元)</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">其他费用</label>
                                <div class="col-sm-3">
                                    <input id="lastname" name="lastname" class="form-control" type="text">
                                </div>
                            </div>
                            <div class="form-group" style="margin-top: 15px">
                                <label class="col-sm-1 control-label">应收金额</label>
                                <div class="col-sm-3">
                                    <input id="firstname" readonly name="firstname" class="form-control" type="text"
                                        value="8641.00">
                                </div>
                                <label class="col-sm-1 control-label">实收金额</label>
                                <div class="col-sm-3">
                                    <input id="lastname" name="lastname" class="form-control" type="text" readonly>
                                </div>
                                <label class="col-sm-1 control-label">总计金额</label>
                                <div class="col-sm-3">
                                    <input id="lastname" name="lastname" class="form-control" type="text" readonly>
                                </div>
                            </div>
                        </form>
                        <div><h3 class="panel-title">送货信息<span class="title-tips">点击确认后弹出支付二维码？还是说显示账号信息？</span></span></h3></div>
                        <form class="form-horizontal m-t" novalidate="novalidate">
                            <div class="form-group">
                                <label class="col-sm-1 control-label">送货日期</label>
                                <div class="col-sm-3">
                                    <input id="backTime" class="fill-item timeChoose" type="text" readonly="readonly" />
                                </div>
                                <label class="col-sm-1 control-label">联系人</label>
                                <div class="col-sm-3">
                                    <input class="fill-item timeChoose" placeholder="联系人姓名" type="text" />
                                </div>
                                <label class="col-sm-1 control-label">联系电话</label>
                                <div class="col-sm-3">
                                    <input class="fill-item timeChoose" placeholder="联系电话" type="text" />
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">送货地址</label>
                                <div class="col-sm-7">
                                    <textarea id="ccomment" name="comment" class="form-control" style="height: 34px;"></textarea>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">备注</label>
                                <div class="col-sm-7">
                                    <textarea id="ccomment" name="comment" class="form-control" style="height: 34px;"></textarea>
                                </div>
                            </div>
                            <div><h3 class="panel-title">其他信息<span class="title-tips">A仓库借出，转销售单时，默认出库仓库就是A仓库</span></span></h3></div>
                            <div class="form-group" style="margin-top: 15px">
                                <label class="col-sm-1 control-label">出库仓库</label>
                                <div class="col-sm-3">
                                    <select select2 id="sale_ware">
                                        <option value="0" >默认仓库</option>
                                        <option value="1" selected>A仓库</option>
                                        <option value="2" >B仓库</option>
                                    </select>
                                </div>
                                <label class="col-sm-1 control-label">销售类型</label>
                                <div class="col-sm-3">
                                    <select select2 id="saleType">
                                        <option value="0" >零售</option>
                                        <option value="1" >批发</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-1 control-label">备注</label>
                                <div class="col-sm-7">
                                    <textarea id="ccomment" name="comment" class="form-control" style="height: 34px;"></textarea>
                                </div>
                            </div>
                        </form>
                    </div>
                    <div slot="footer" style="text-align:center">
                        <a href="javascript:;" class="revision-btn"> 保存</a>
                        <a href="javascript:;"  class="revision-btn-default" v-on:click="this.pushModal.close()"> 取消</a>
                    </div>
                </modal>
            </div>
        </div>
    </div>
    <script src="../content/js/lib/vue/vue.min.js"></script>
    <script src="../content/static/js/jquery.min.js?v=2.1.4"></script>
    <script src="../content/static/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="../content/static/js/plugins/chosen/chosen.jquery.js"></script>
    <script src="../content/static/js/plugins/bootstrap-table/bootstrap-table.min.js"></script>
    <script src="../content/static/js/content.min.js?v=1.0.0"></script>
    <script src="../content/js/lib/calendar/calendar.js"></script>
    <script src="../content/js/lib/calendar/scrollbar.js"></script>
    <script src="../content/js/lib/vue/vue-modal.js"></script>
    <script src="../content/js/lib/vue/vue-pagination.js"></script>
    <script src="../content/js/common.js"></script>
    <script src="../content/js/lib/vue/select2.js"></script>
    <script type="text/javascript">
        $(function () {
            //时间验证
            var calObj = new $.Calendar({
                //time: true,
                skin: 'white'
            });
            $('#costTimeStart').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    endTime = $('#costTimeEnd').val();
                calObj.pick({
                    elem: this,
                    endDate: endTime
                });
            });
            $('#costTimeEnd').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    startTime = $('#costTimeStart').val();
                calObj.pick({
                    elem: this,
                    startDate: startTime
                });
            });
            $('#backTime').focus(function () {
                var $this = $(this),
                    val = $this.val(),
                    startTime = new Date();
                calObj.pick({
                    elem: this,
                    startDate: startTime
                });
            });
        });
        $("#approvalStatus").select2({
            width: "160px"
        });
        $("#warehouse").select2({
            width: "160px"
        });
        $("#status").select2({
            width: "160px"
        });
        $("#approveStatus").select2({
            width: "160px"
        });
        var vmData = {
            pushModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.pushModal.show = false;
                }
            },
            backModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.backModal.show = false;
                }
            },
            detailModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.detailModal.show = false;
                }
            },
            addModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.addModal.show = false;
                }
            },
            productSelectModal: {
                show: false,
                style: {
                    width: '980px',
                    height: "auto"
                },
                addClass: 'scroll-modal',
                func: {
                    type: Function
                },
                close: function () {
                    vm.productSelectModal.show = false;
                }
            },
            modelTitle: "",
            approveStatusList: [{
                    "Text": "全部",
                    "Value": "553",
                },
                {
                    "Text": "待项目经理审批",
                    "Value": "553",
                },
                {
                    "Text": "待CEO审批",
                    "Value": "553",
                },
                {
                    "Text": "待A仓Leader审批",
                    "Value": "553",
                },
                {
                    "Text": "待B仓Leader审批",
                    "Value": "553",
                },
                {
                    "Text": "待销售经理审批",
                    "Value": "553",
                },
            ],
            backStatusList: [{
                    "Text": "全部",
                    "Value": "553",
                },
                {
                    "Text": "未归还",
                    "Value": "360",
                }, {
                    "Text": "已归还",
                    "Value": "365",
                },
                {
                    "Text": "转销售",
                    "Value": "4105",
                }
            ],
            warehouseList: [{
                    "Text": "北京",
                    "Value": "553",
                },
                {
                    "Text": "上海",
                    "Value": "360",
                }, {
                    "Text": "大西洋大西洋大西洋大西洋大西洋大西洋大西洋",
                    "Value": "365",
                },
                {
                    "Text": "广州",
                    "Value": "4105",
                }, {
                    "Text": "北冰洋",
                    "Value": "510",
                },
                {
                    "Text": "深圳",
                    "Value": "3219",
                },
                {
                    "Text": "天津",
                    "Value": "99402",
                },
                {
                    "Text": "合肥",
                    "Value": "519",
                },
                {
                    "Text": "苏州",
                    "Value": "518",
                },
                {
                    "Text": "南京",
                    "Value": "517",
                },
                {
                    "Text": "无锡",
                    "Value": "525",
                },
                {
                    "Text": "大东北",
                    "Value": "528",
                },
                {
                    "Text": "大西北",
                    "Value": "533",
                },
                {
                    "Text": "非洲",
                    "Value": "538",
                },
                {
                    "Text": "欧洲",
                    "Value": "537",
                },
                {
                    "Text": "南美洲",
                    "Value": "536",
                }
            ],
            modelFlag: 0,
            selectProductItem: [],
            productListSelect: [{
                    "checked": false,
                    "Id": "1",
                    "productCode": "SP20150717002",
                    "productName": "三角阀",
                    "spec": "桶",
                    "prope": "通用型",
                    "stockCount": "12",
                    "price": "12",
                    "remark": "",
                    "img": "../content/static/img/no_pic.png"
                },
                {
                    "checked": false,
                    "Id": "2",
                    "productCode": "SP20150717002",
                    "productName": "劲霸皮革清洗剂",
                    "spec": "桶",
                    "prope": "5L",
                    "stockCount": "1",
                    "inventoryCount": "1",
                    "remark": "",
                    "barCode": "",
                    "img": "../content/static/img/no_pic.png"
                }, {
                    "checked": false,
                    "Id": "3",
                    "productCode": "SP20150717002",
                    "productName": "快卫内饰清洗剂",
                    "spec": "瓶",
                    "prope": "500ML",
                    "stockCount": "52",
                    "price": "52",
                    "remark": "",
                    "img": "../content/static/img/no_pic.png"
                }, {
                    "checked": false,
                    "Id": "4",
                    "productCode": "SP20150717002",
                    "productName": "漆面至尊镀晶大套装",
                    "spec": "套",
                    "prope": "",
                    "stockCount": "14",
                    "price": "15",
                    "remark": "",
                    "img": "../content/static/img/no_pic.png"
                }
            ],
            productChooseList: [],
            accountList: [{
                "Text": "中国银行",
                "Value": "1",
            }, {
                "Text": "建设银行",
                "Value": "2",
            }, {
                "Text": "农业银行",
                "Value": "3",
            }, {
                "Text": "工商银行",
                "Value": "4",
            }, {
                "Text": "现金",
                "Value": "5",
            }, ],
        };
        vmData = $.extend(vmData, baseData);
        var vmMothod = {
            init: function () {},
            detailShow: function (obj) {
                vm.detailModal.show = true;
                $("#backStatus").select2({
                    width: "160px"
                });
                $("#backStatus").val('').trigger('change'); //初始化
            },
            addShow: function () {
                vm.addModal.show = true;
                $("#warehouseAdd").select2({
                    width: "160px"
                });
                $("#warehouseAdd").val('').trigger('change'); //初始化
                $("#supplier").select2({
                    width: "160px"
                });
                $("#supplier").val('').trigger('change'); //初始化

                $("#type").select2({
                    width: "160px"
                });
                $("#type").val('').trigger('change'); //初始化
            },
            selectProduct: function () {
                vm.productSelectModal.show = true;
            },
            productChooseClick: function (e) {
                if (e.checked) {
                    vm.productChooseList.forEach(function (a, v) {
                        if (a.Id = v.Id)
                            vm.productChooseList.splice(v, 1);
                    });
                } else {
                    vm.productChooseList.push(e);
                }
            },
            backShow: function () {
                vm.backModal.show = true;
                $("#warehouse_add").select2({
                    width: "160px"
                });
                $("#warehouse_add").val('').trigger('change'); //初始化
            },
            saleShow: function () {
                vm.pushModal.show = true;
                $("#salTtype").select2({
                    width: "100px"
                });
                $("#salTtype").val('').trigger('change'); //初始化
                $("#account").select2({
                    width: "210px"
                });
                $("#account").val('').trigger('change'); //初始化

                $("#discount").select2({
                    width: "210px"
                });
                $("#discount").val('').trigger('change'); //初始化
                $("#saleType").select2({
                    width: "210px"
                });
                $("#saleType").val('').trigger('change'); //初始化
                
                $("#sale_ware").select2({
                    width: "210px"
                });
                $("#sale_ware").val('').trigger('change');
            }
        };
        vmMothod = $.extend(vmMothod, baseCommonFunction);
        var vm = new Vue({
            el: '.content-container',
            data: vmData,
            methods: vmMothod
        });
        vm.init();
    </script>
</body>

</html>